﻿//==================================================================
// Copyright (C) 2011 深圳市中旭企业管理股份有限公司
// 文件名: V_CrmDeliverMajorInfo.cs
// 作 者：代码自动生成
// 日 期：2013-3-21 14:39:08
// 描 述：
// 版 本：1.00
// 修改历史纪录
// 版 本  修改时间      修改人            修改内容
// 1.00             
//==================================================================
using System;
using System.Collections.Generic;
using System.Linq;
using System.ComponentModel;
using System.Text;
using Csla;
using lite;
using Csla.Validation;
using Csla.Data;
using System.Data.SqlClient;
using ZX.DAL;
using OpenExpressApp.ORM;

namespace ZX.CRM.Library
{
	/// <summary>
    /// 
    /// </summary>
	[Serializable]
    [Table(Name="V_CrmDeliverMajorInfo")]
    [ZX.DBModule.Table("V_CrmDeliverMajorInfo","ID")]
	public class V_CrmDeliverMajorInfo: ZX.DBModule.BaseEntity
	{
        #region Business Methods 业务方法
        /// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< Guid > IDProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< Guid >("ID"));
        [DataObjectField(true, true)]
        [Column, PK]
        public Guid ID
        {
            get { return GetProperty(IDProperty); }
            set { SetProperty(IDProperty, value); }
        }
        
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > CodeProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("Code"));
        [Column]
        public string Code
        {
            get { return GetProperty(CodeProperty); }
            set { SetProperty(CodeProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< Guid > OrderProductIDProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< Guid >("OrderProductID"));
        [Column]
        public Guid OrderProductID
        {
            get { return GetProperty(OrderProductIDProperty); }
            set { SetProperty(OrderProductIDProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< Guid > ProductLayoutIDProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< Guid >("ProductLayoutID"));
        [Column]
        public Guid ProductLayoutID
        {
            get { return GetProperty(ProductLayoutIDProperty); }
            set { SetProperty(ProductLayoutIDProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< Guid > NegotiateTeachProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< Guid >("NegotiateTeach"));
        [Column]
        public Guid NegotiateTeach
        {
            get { return GetProperty(NegotiateTeachProperty); }
            set { SetProperty(NegotiateTeachProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< Guid > ClassServerProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< Guid >("ClassServer"));
        [Column]
        public Guid ClassServer
        {
            get { return GetProperty(ClassServerProperty); }
            set { SetProperty(ClassServerProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< Guid > ClassFrontServerProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< Guid >("ClassFrontServer"));
        [Column]
        public Guid ClassFrontServer
        {
            get { return GetProperty(ClassFrontServerProperty); }
            set { SetProperty(ClassFrontServerProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< Guid > DliverStateProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< Guid >("DliverState"));
        [Column]
        public Guid DliverState
        {
            get { return GetProperty(DliverStateProperty); }
            set { SetProperty(DliverStateProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > IsSureProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("IsSure"));
        [Column]
        public string IsSure
        {
            get { return GetProperty(IsSureProperty); }
            set { SetProperty(IsSureProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< Guid > SureUserProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< Guid >("SureUser"));
        [Column]
        public Guid SureUser
        {
            get { return GetProperty(SureUserProperty); }
            set { SetProperty(SureUserProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< DateTime > SureTimeProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< DateTime >("SureTime"));
        [Column]
        public DateTime SureTime
        {
            get { return GetProperty(SureTimeProperty); }
            set { SetProperty(SureTimeProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< Guid > AddUserProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< Guid >("AddUser"));
        [Column]
        public Guid AddUser
        {
            get { return GetProperty(AddUserProperty); }
            set { SetProperty(AddUserProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< DateTime > AddTimeProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< DateTime >("AddTime"));
        [Column]
        public DateTime AddTime
        {
            get { return GetProperty(AddTimeProperty); }
            set { SetProperty(AddTimeProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > exp1Property = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("exp1"));
        [Column]
        public string exp1
        {
            get { return GetProperty(exp1Property); }
            set { SetProperty(exp1Property, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > exp2Property = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("exp2"));
        [Column]
        public string exp2
        {
            get { return GetProperty(exp2Property); }
            set { SetProperty(exp2Property, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > exp3Property = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("exp3"));
        [Column]
        public string exp3
        {
            get { return GetProperty(exp3Property); }
            set { SetProperty(exp3Property, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > exp4Property = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("exp4"));
        [Column]
        public string exp4
        {
            get { return GetProperty(exp4Property); }
            set { SetProperty(exp4Property, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< Guid > GradeDeptIdProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< Guid >("GradeDeptId"));
        [Column]
        public Guid GradeDeptId
        {
            get { return GetProperty(GradeDeptIdProperty); }
            set { SetProperty(GradeDeptIdProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< Guid > ConstDeptIdProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< Guid >("ConstDeptId"));
        [Column]
        public Guid ConstDeptId
        {
            get { return GetProperty(ConstDeptIdProperty); }
            set { SetProperty(ConstDeptIdProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > WorkFlowIdProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("WorkFlowId"));
        [Column]
        public string WorkFlowId
        {
            get { return GetProperty(WorkFlowIdProperty); }
            set { SetProperty(WorkFlowIdProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > WorkFlowInsIdProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("WorkFlowInsId"));
        [Column]
        public string WorkFlowInsId
        {
            get { return GetProperty(WorkFlowInsIdProperty); }
            set { SetProperty(WorkFlowInsIdProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > WorkTaskIdProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("WorkTaskId"));
        [Column]
        public string WorkTaskId
        {
            get { return GetProperty(WorkTaskIdProperty); }
            set { SetProperty(WorkTaskIdProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > WorkTaskInsIdProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("WorkTaskInsId"));
        [Column]
        public string WorkTaskInsId
        {
            get { return GetProperty(WorkTaskInsIdProperty); }
            set { SetProperty(WorkTaskInsIdProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< Guid > MajorStudentIDProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< Guid >("MajorStudentID"));
        [Column]
        public Guid MajorStudentID
        {
            get { return GetProperty(MajorStudentIDProperty); }
            set { SetProperty(MajorStudentIDProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > ClassNameProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("ClassName"));
        [Column]
        public string ClassName
        {
            get { return GetProperty(ClassNameProperty); }
            set { SetProperty(ClassNameProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > PrintClassNameProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("PrintClassName"));
        [Column]
        public string PrintClassName
        {
            get { return GetProperty(PrintClassNameProperty); }
            set { SetProperty(PrintClassNameProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > IDCardProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("IDCard"));
        [Column]
        public string IDCard
        {
            get { return GetProperty(IDCardProperty); }
            set { SetProperty(IDCardProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > SexProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("Sex"));
        [Column]
        public string Sex
        {
            get { return GetProperty(SexProperty); }
            set { SetProperty(SexProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > PostProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("Post"));
        [Column]
        public string Post
        {
            get { return GetProperty(PostProperty); }
            set { SetProperty(PostProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > IsDecisionProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("IsDecision"));
        [Column]
        public string IsDecision
        {
            get { return GetProperty(IsDecisionProperty); }
            set { SetProperty(IsDecisionProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< Guid > HouseTypeProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< Guid >("HouseType"));
        [Column]
        public Guid HouseType
        {
            get { return GetProperty(HouseTypeProperty); }
            set { SetProperty(HouseTypeProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< Guid > TrafficTypeProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< Guid >("TrafficType"));
        [Column]
        public Guid TrafficType
        {
            get { return GetProperty(TrafficTypeProperty); }
            set { SetProperty(TrafficTypeProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< DateTime > ArriveatTimeProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< DateTime >("ArriveatTime"));
        [Column]
        public DateTime ArriveatTime
        {
            get { return GetProperty(ArriveatTimeProperty); }
            set { SetProperty(ArriveatTimeProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > FlightNumProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("FlightNum"));
        [Column]
        public string FlightNum
        {
            get { return GetProperty(FlightNumProperty); }
            set { SetProperty(FlightNumProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< Guid > ColonelProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< Guid >("Colonel"));
        [Column]
        public Guid Colonel
        {
            get { return GetProperty(ColonelProperty); }
            set { SetProperty(ColonelProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > GroupNameProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("GroupName"));
        [Column]
        public string GroupName
        {
            get { return GetProperty(GroupNameProperty); }
            set { SetProperty(GroupNameProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< Guid > AssistanceProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< Guid >("Assistance"));
        [Column]
        public Guid Assistance
        {
            get { return GetProperty(AssistanceProperty); }
            set { SetProperty(AssistanceProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > IsSignInProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("IsSignIn"));
        [Column]
        public string IsSignIn
        {
            get { return GetProperty(IsSignInProperty); }
            set { SetProperty(IsSignInProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< DateTime > SignInProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< DateTime >("SignIn"));
        [Column]
        public DateTime SignIn
        {
            get { return GetProperty(SignInProperty); }
            set { SetProperty(SignInProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > ExplainProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("Explain"));
        [Column]
        public string Explain
        {
            get { return GetProperty(ExplainProperty); }
            set { SetProperty(ExplainProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< int > GroupNumberProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< int >("GroupNumber"));
        [Column]
        public int GroupNumber
        {
            get { return GetProperty(GroupNumberProperty); }
            set { SetProperty(GroupNumberProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > IsTrainProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("IsTrain"));
        [Column]
        public string IsTrain
        {
            get { return GetProperty(IsTrainProperty); }
            set { SetProperty(IsTrainProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< Guid > ActualHouseTypeProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< Guid >("ActualHouseType"));
        [Column]
        public Guid ActualHouseType
        {
            get { return GetProperty(ActualHouseTypeProperty); }
            set { SetProperty(ActualHouseTypeProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > MinZuProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("MinZu"));
        [Column]
        public string MinZu
        {
            get { return GetProperty(MinZuProperty); }
            set { SetProperty(MinZuProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > ShengRiProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("ShengRi"));
        [Column]
        public string ShengRi
        {
            get { return GetProperty(ShengRiProperty); }
            set { SetProperty(ShengRiProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > YouXiangProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("YouXiang"));
        [Column]
        public string YouXiang
        {
            get { return GetProperty(YouXiangProperty); }
            set { SetProperty(YouXiangProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > ShouJiProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("ShouJi"));
        [Column]
        public string ShouJi
        {
            get { return GetProperty(ShouJiProperty); }
            set { SetProperty(ShouJiProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > IsGaiQiProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("IsGaiQi"));
        [Column]
        public string IsGaiQi
        {
            get { return GetProperty(IsGaiQiProperty); }
            set { SetProperty(IsGaiQiProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< decimal > AccountReceivableProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< decimal >("AccountReceivable"));
        [Column]
        public decimal AccountReceivable
        {
            get { return GetProperty(AccountReceivableProperty); }
            set { SetProperty(AccountReceivableProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< decimal > ResignMoneyProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< decimal >("ResignMoney"));
        [Column]
        public decimal ResignMoney
        {
            get { return GetProperty(ResignMoneyProperty); }
            set { SetProperty(ResignMoneyProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > CustomerCodeProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("CustomerCode"));
        [Column]
        public string CustomerCode
        {
            get { return GetProperty(CustomerCodeProperty); }
            set { SetProperty(CustomerCodeProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< decimal > AmountProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< decimal >("Amount"));
        [Column]
        public decimal Amount
        {
            get { return GetProperty(AmountProperty); }
            set { SetProperty(AmountProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > CustomerOriginProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("CustomerOrigin"));
        [Column]
        public string CustomerOrigin
        {
            get { return GetProperty(CustomerOriginProperty); }
            set { SetProperty(CustomerOriginProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > NegotiateTeacherNameProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("NegotiateTeacherName"));
        [Column]
        public string NegotiateTeacherName
        {
            get { return GetProperty(NegotiateTeacherNameProperty); }
            set { SetProperty(NegotiateTeacherNameProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > ClassServerNameProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("ClassServerName"));
        [Column]
        public string ClassServerName
        {
            get { return GetProperty(ClassServerNameProperty); }
            set { SetProperty(ClassServerNameProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > ClassFrontServerNameProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("ClassFrontServerName"));
        [Column]
        public string ClassFrontServerName
        {
            get { return GetProperty(ClassFrontServerNameProperty); }
            set { SetProperty(ClassFrontServerNameProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > SureUserNameProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("SureUserName"));
        [Column]
        public string SureUserName
        {
            get { return GetProperty(SureUserNameProperty); }
            set { SetProperty(SureUserNameProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > AddUserNameProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("AddUserName"));
        [Column]
        public string AddUserName
        {
            get { return GetProperty(AddUserNameProperty); }
            set { SetProperty(AddUserNameProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > CourseLayoutNameProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("CourseLayoutName"));
        [Column]
        public string CourseLayoutName
        {
            get { return GetProperty(CourseLayoutNameProperty); }
            set { SetProperty(CourseLayoutNameProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< DateTime > BeginDateProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< DateTime >("BeginDate"));
        [Column]
        public DateTime BeginDate
        {
            get { return GetProperty(BeginDateProperty); }
            set { SetProperty(BeginDateProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< DateTime > EndDateProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< DateTime >("EndDate"));
        [Column]
        public DateTime EndDate
        {
            get { return GetProperty(EndDateProperty); }
            set { SetProperty(EndDateProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > PlaceProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("Place"));
        [Column]
        public string Place
        {
            get { return GetProperty(PlaceProperty); }
            set { SetProperty(PlaceProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > OrderCodeProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("OrderCode"));
        [Column]
        public string OrderCode
        {
            get { return GetProperty(OrderCodeProperty); }
            set { SetProperty(OrderCodeProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > CustomerNameProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("CustomerName"));
        [Column]
        public string CustomerName
        {
            get { return GetProperty(CustomerNameProperty); }
            set { SetProperty(CustomerNameProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< Guid > OrderIDProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< Guid >("OrderID"));
        [Column]
        public Guid OrderID
        {
            get { return GetProperty(OrderIDProperty); }
            set { SetProperty(OrderIDProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< Guid > CustomerIdProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< Guid >("CustomerId"));
        [Column]
        public Guid CustomerId
        {
            get { return GetProperty(CustomerIdProperty); }
            set { SetProperty(CustomerIdProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< Guid > ProductIdProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< Guid >("ProductId"));
        [Column]
        public Guid ProductId
        {
            get { return GetProperty(ProductIdProperty); }
            set { SetProperty(ProductIdProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< Guid > TypeIdProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< Guid >("TypeId"));
        [Column]
        public Guid TypeId
        {
            get { return GetProperty(TypeIdProperty); }
            set { SetProperty(TypeIdProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > GradeDeptNameProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("GradeDeptName"));
        [Column]
        public string GradeDeptName
        {
            get { return GetProperty(GradeDeptNameProperty); }
            set { SetProperty(GradeDeptNameProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > ConstDeptNameProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("ConstDeptName"));
        [Column]
        public string ConstDeptName
        {
            get { return GetProperty(ConstDeptNameProperty); }
            set { SetProperty(ConstDeptNameProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > HouseTypeNameProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("HouseTypeName"));
        [Column]
        public string HouseTypeName
        {
            get { return GetProperty(HouseTypeNameProperty); }
            set { SetProperty(HouseTypeNameProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > TrafficTypeNameProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("TrafficTypeName"));
        [Column]
        public string TrafficTypeName
        {
            get { return GetProperty(TrafficTypeNameProperty); }
            set { SetProperty(TrafficTypeNameProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > AssistanceNameProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("AssistanceName"));
        [Column]
        public string AssistanceName
        {
            get { return GetProperty(AssistanceNameProperty); }
            set { SetProperty(AssistanceNameProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< Guid > CustomerMgrProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< Guid >("CustomerMgr"));
        [Column]
        public Guid CustomerMgr
        {
            get { return GetProperty(CustomerMgrProperty); }
            set { SetProperty(CustomerMgrProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > CustomerMgrNameProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("CustomerMgrName"));
        [Column]
        public string CustomerMgrName
        {
            get { return GetProperty(CustomerMgrNameProperty); }
            set { SetProperty(CustomerMgrNameProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< Guid > CustomerDirectorProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< Guid >("CustomerDirector"));
        [Column]
        public Guid CustomerDirector
        {
            get { return GetProperty(CustomerDirectorProperty); }
            set { SetProperty(CustomerDirectorProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > CustomerDirectorNameProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("CustomerDirectorName"));
        [Column]
        public string CustomerDirectorName
        {
            get { return GetProperty(CustomerDirectorNameProperty); }
            set { SetProperty(CustomerDirectorNameProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< Guid > CustomerManagerProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< Guid >("CustomerManager"));
        [Column]
        public Guid CustomerManager
        {
            get { return GetProperty(CustomerManagerProperty); }
            set { SetProperty(CustomerManagerProperty, value); }
        }
		/// <summary>
        /// 
        /// </summary>
        private static PropertyInfo< string > CustomerManagerNameProperty = RegisterProperty(typeof(V_CrmDeliverMajorInfo),new PropertyInfo< string >("CustomerManagerName"));
        [Column]
        public string CustomerManagerName
        {
            get { return GetProperty(CustomerManagerNameProperty); }
            set { SetProperty(CustomerManagerNameProperty, value); }
        }
        #endregion
        
        #region Validation Rules 验证规则
        //将验证规则与业务对象的属性联系在一起
        protected override void AddBusinessRules()
        {
            //AddRule的第一个参数是委托变量，也就是说是方法的变量
            ValidationRules.AddRule(CommonRules.StringRequired, "Code");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("Code", 15));
            ValidationRules.AddRule(CommonRules.StringRequired, "IsSure");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("IsSure", 1));
            ValidationRules.AddRule(CommonRules.StringRequired, "exp1");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("exp1", 50));
            ValidationRules.AddRule(CommonRules.StringRequired, "exp2");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("exp2", 50));
            ValidationRules.AddRule(CommonRules.StringRequired, "exp3");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("exp3", 50));
            ValidationRules.AddRule(CommonRules.StringRequired, "exp4");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("exp4", 50));
            ValidationRules.AddRule(CommonRules.StringRequired, "WorkFlowId");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("WorkFlowId", 50));
            ValidationRules.AddRule(CommonRules.StringRequired, "WorkFlowInsId");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("WorkFlowInsId", 50));
            ValidationRules.AddRule(CommonRules.StringRequired, "WorkTaskId");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("WorkTaskId", 50));
            ValidationRules.AddRule(CommonRules.StringRequired, "WorkTaskInsId");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("WorkTaskInsId", 50));
            ValidationRules.AddRule(CommonRules.StringRequired, "ClassName");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("ClassName", 50));
            ValidationRules.AddRule(CommonRules.StringRequired, "PrintClassName");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("PrintClassName", 50));
            ValidationRules.AddRule(CommonRules.StringRequired, "IDCard");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("IDCard", 20));
            ValidationRules.AddRule(CommonRules.StringRequired, "Sex");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("Sex", 5));
            ValidationRules.AddRule(CommonRules.StringRequired, "Post");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("Post", 10));
            ValidationRules.AddRule(CommonRules.StringRequired, "IsDecision");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("IsDecision", 1));
            ValidationRules.AddRule(CommonRules.StringRequired, "FlightNum");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("FlightNum", 20));
            ValidationRules.AddRule(CommonRules.StringRequired, "GroupName");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("GroupName", 30));
            ValidationRules.AddRule(CommonRules.StringRequired, "IsSignIn");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("IsSignIn", 1));
            ValidationRules.AddRule(CommonRules.StringRequired, "Explain");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("Explain", 100));
            ValidationRules.AddRule(CommonRules.StringRequired, "IsTrain");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("IsTrain", 1));
            ValidationRules.AddRule(CommonRules.StringRequired, "MinZu");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("MinZu", 50));
            ValidationRules.AddRule(CommonRules.StringRequired, "ShengRi");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("ShengRi", 50));
            ValidationRules.AddRule(CommonRules.StringRequired, "YouXiang");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("YouXiang", 50));
            ValidationRules.AddRule(CommonRules.StringRequired, "ShouJi");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("ShouJi", 50));
            ValidationRules.AddRule(CommonRules.StringRequired, "IsGaiQi");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("IsGaiQi", 50));
            ValidationRules.AddRule(CommonRules.StringRequired, "CustomerCode");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("CustomerCode", 15));
            ValidationRules.AddRule(CommonRules.StringRequired, "CustomerOrigin");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("CustomerOrigin", 100));
            ValidationRules.AddRule(CommonRules.StringRequired, "NegotiateTeacherName");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("NegotiateTeacherName", 30));
            ValidationRules.AddRule(CommonRules.StringRequired, "ClassServerName");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("ClassServerName", 30));
            ValidationRules.AddRule(CommonRules.StringRequired, "ClassFrontServerName");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("ClassFrontServerName", 30));
            ValidationRules.AddRule(CommonRules.StringRequired, "SureUserName");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("SureUserName", 30));
            ValidationRules.AddRule(CommonRules.StringRequired, "AddUserName");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("AddUserName", 30));
            ValidationRules.AddRule(CommonRules.StringRequired, "CourseLayoutName");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("CourseLayoutName", 50));
            ValidationRules.AddRule(CommonRules.StringRequired, "Place");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("Place", 20));
            ValidationRules.AddRule(CommonRules.StringRequired, "OrderCode");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("OrderCode", 15));
            ValidationRules.AddRule(CommonRules.StringRequired, "CustomerName");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("CustomerName", 50));
            ValidationRules.AddRule(CommonRules.StringRequired, "GradeDeptName");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("GradeDeptName", 50));
            ValidationRules.AddRule(CommonRules.StringRequired, "ConstDeptName");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("ConstDeptName", 50));
            ValidationRules.AddRule(CommonRules.StringRequired, "HouseTypeName");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("HouseTypeName", 100));
            ValidationRules.AddRule(CommonRules.StringRequired, "TrafficTypeName");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("TrafficTypeName", 100));
            ValidationRules.AddRule(CommonRules.StringRequired, "AssistanceName");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("AssistanceName", 30));
            ValidationRules.AddRule(CommonRules.StringRequired, "CustomerMgrName");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("CustomerMgrName", 30));
            ValidationRules.AddRule(CommonRules.StringRequired, "CustomerDirectorName");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("CustomerDirectorName", 30));
            ValidationRules.AddRule(CommonRules.StringRequired, "CustomerManagerName");
            ValidationRules.AddRule(CommonRules.StringMaxLength, new Csla.Validation.CommonRules.MaxLengthRuleArgs("CustomerManagerName", 30));
            //base.AddBusinessRules();
        }
        #endregion
        
        #region Factory Methods 工厂方法

        public V_CrmDeliverMajorInfo(){}

        public static V_CrmDeliverMajorInfo New()
        {
            return DataPortal.Create< V_CrmDeliverMajorInfo>();
        }
        public static V_CrmDeliverMajorInfo Get(Guid ID)
        {
            return DataPortal.Fetch< V_CrmDeliverMajorInfo>(new SingleLazyCriteria< V_CrmDeliverMajorInfo, Guid>(ID, false));
        }
        public static void Delete(Guid ID )
        {
            DataPortal.Delete(ID);
        }
        
        #endregion
        
        #region Data Access 数据访问
        //由于DataPortal_create中没有对数据库的访问，所有标记了Runlocal特性，使得该方法只需在本地运行即可
        //如果代码中有访问数据库的方法，那么就不要用这个特性，使数据门户可以根据情况将此方法的运行选择在应用服务器还是本地
        [RunLocal()]
        protected override void DataPortal_Create()
        {
            //在此调用CheckRules对所有的属性进行验证规则的检查，这样检查只运行一次。
            ValidationRules.CheckRules();
        }


        //可以看到此方法没有标记任何特性
        //此方法要访问数据库所以不能标记本地，由于她没有任何数据库更新操作所以也无需事务性的保护
        //此方法调用结束后会隐含的调用MarkOld（）方法
        private void DataPortal_Fetch(Guid ID)
        {
            //通过连接字符串建立SQL连接对象，Using符号代表，范围释放的意思，SqlConnection对象会在此范围后被释放掉
             using (var ctx = ConnectionManager<SqlConnection>.GetManager(ConnectionStringNames))
            {
                IDb db = DbFactory.Instance.GetDb(ctx.Connection);
                IQuery q = db.Query();
                q.Constrain("ID").Equal(ID);
                
                var data = db.Select< V_CrmDeliverMajorInfo>(q)[0];
                LoadProperty(IDProperty, data.ID);
                LoadProperty(CodeProperty, data.Code);
                LoadProperty(OrderProductIDProperty, data.OrderProductID);
                LoadProperty(ProductLayoutIDProperty, data.ProductLayoutID);
                LoadProperty(NegotiateTeachProperty, data.NegotiateTeach);
                LoadProperty(ClassServerProperty, data.ClassServer);
                LoadProperty(ClassFrontServerProperty, data.ClassFrontServer);
                LoadProperty(DliverStateProperty, data.DliverState);
                LoadProperty(IsSureProperty, data.IsSure);
                LoadProperty(SureUserProperty, data.SureUser);
                LoadProperty(SureTimeProperty, data.SureTime);
                LoadProperty(AddUserProperty, data.AddUser);
                LoadProperty(AddTimeProperty, data.AddTime);
                LoadProperty(exp1Property, data.exp1);
                LoadProperty(exp2Property, data.exp2);
                LoadProperty(exp3Property, data.exp3);
                LoadProperty(exp4Property, data.exp4);
                LoadProperty(GradeDeptIdProperty, data.GradeDeptId);
                LoadProperty(ConstDeptIdProperty, data.ConstDeptId);
                LoadProperty(WorkFlowIdProperty, data.WorkFlowId);
                LoadProperty(WorkFlowInsIdProperty, data.WorkFlowInsId);
                LoadProperty(WorkTaskIdProperty, data.WorkTaskId);
                LoadProperty(WorkTaskInsIdProperty, data.WorkTaskInsId);
                LoadProperty(MajorStudentIDProperty, data.MajorStudentID);
                LoadProperty(ClassNameProperty, data.ClassName);
                LoadProperty(PrintClassNameProperty, data.PrintClassName);
                LoadProperty(IDCardProperty, data.IDCard);
                LoadProperty(SexProperty, data.Sex);
                LoadProperty(PostProperty, data.Post);
                LoadProperty(IsDecisionProperty, data.IsDecision);
                LoadProperty(HouseTypeProperty, data.HouseType);
                LoadProperty(TrafficTypeProperty, data.TrafficType);
                LoadProperty(ArriveatTimeProperty, data.ArriveatTime);
                LoadProperty(FlightNumProperty, data.FlightNum);
                LoadProperty(ColonelProperty, data.Colonel);
                LoadProperty(GroupNameProperty, data.GroupName);
                LoadProperty(AssistanceProperty, data.Assistance);
                LoadProperty(IsSignInProperty, data.IsSignIn);
                LoadProperty(SignInProperty, data.SignIn);
                LoadProperty(ExplainProperty, data.Explain);
                LoadProperty(GroupNumberProperty, data.GroupNumber);
                LoadProperty(IsTrainProperty, data.IsTrain);
                LoadProperty(ActualHouseTypeProperty, data.ActualHouseType);
                LoadProperty(MinZuProperty, data.MinZu);
                LoadProperty(ShengRiProperty, data.ShengRi);
                LoadProperty(YouXiangProperty, data.YouXiang);
                LoadProperty(ShouJiProperty, data.ShouJi);
                LoadProperty(IsGaiQiProperty, data.IsGaiQi);
                LoadProperty(AccountReceivableProperty, data.AccountReceivable);
                LoadProperty(ResignMoneyProperty, data.ResignMoney);
                LoadProperty(CustomerCodeProperty, data.CustomerCode);
                LoadProperty(AmountProperty, data.Amount);
                LoadProperty(CustomerOriginProperty, data.CustomerOrigin);
                LoadProperty(NegotiateTeacherNameProperty, data.NegotiateTeacherName);
                LoadProperty(ClassServerNameProperty, data.ClassServerName);
                LoadProperty(ClassFrontServerNameProperty, data.ClassFrontServerName);
                LoadProperty(SureUserNameProperty, data.SureUserName);
                LoadProperty(AddUserNameProperty, data.AddUserName);
                LoadProperty(CourseLayoutNameProperty, data.CourseLayoutName);
                LoadProperty(BeginDateProperty, data.BeginDate);
                LoadProperty(EndDateProperty, data.EndDate);
                LoadProperty(PlaceProperty, data.Place);
                LoadProperty(OrderCodeProperty, data.OrderCode);
                LoadProperty(CustomerNameProperty, data.CustomerName);
                LoadProperty(OrderIDProperty, data.OrderID);
                LoadProperty(CustomerIdProperty, data.CustomerId);
                LoadProperty(ProductIdProperty, data.ProductId);
                LoadProperty(TypeIdProperty, data.TypeId);
                LoadProperty(GradeDeptNameProperty, data.GradeDeptName);
                LoadProperty(ConstDeptNameProperty, data.ConstDeptName);
                LoadProperty(HouseTypeNameProperty, data.HouseTypeName);
                LoadProperty(TrafficTypeNameProperty, data.TrafficTypeName);
                LoadProperty(AssistanceNameProperty, data.AssistanceName);
                LoadProperty(CustomerMgrProperty, data.CustomerMgr);
                LoadProperty(CustomerMgrNameProperty, data.CustomerMgrName);
                LoadProperty(CustomerDirectorProperty, data.CustomerDirector);
                LoadProperty(CustomerDirectorNameProperty, data.CustomerDirectorName);
                LoadProperty(CustomerManagerProperty, data.CustomerManager);
                LoadProperty(CustomerManagerNameProperty, data.CustomerManagerName);
            }
        }

        [Transactional(TransactionalTypes.TransactionScope)]
        protected override void DataPortal_DeleteSelf()
        {
            //依然是调用下面的方法删除的，只是他此时可以获得自己的Id
            DataPortal_Delete(IDProperty);
        }
        #endregion
	}
}

